////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011-2012 www.iflytek.com. All Rights Reserved.
//  This software for customer relationship management system, developed by Iflytek_ZY team.
//  Software code and design for the team, copy rights reserved.
////////////////////////////////////////////////////////////////////////////////

package com.iflytek.ci.main.dto;

import java.io.Serializable;

import com.iflytek.ci.cpms.domain.Project;
import com.iflytek.ci.qams.domain.Comment;
import com.iflytek.ci.qams.domain.Issue;
import com.iflytek.ci.qams.domain.Priopity;

/**
 * <p>
 * 邮件发送内容.
 * </p>
 * 
 * @author poplar.yfyang
 * @version 1.0 2012-11-10 11:24 AM
 * @since JDK 1.5
 */
public final class MailContent implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -6932908703723717144L;

	/** 问题详细 */
	private final Issue issue;

	/** 问题所属项目 */
	private final Project project;

	/** 最新回复 */
	private final Comment comment;

	/** 优先级 */
	private final Priopity priopity;

	/**
	 * 构建一个邮件发送内容
	 * 
	 * @param issue
	 *            问题详细
	 * @param project
	 *            项目信息
	 * @param comment
	 *            最新回复
	 */
	public MailContent(Issue issue, Project project, Comment comment,
			Priopity priopity) {
		this.issue = issue;
		this.project = project;
		this.comment = comment;
		this.priopity = priopity;
	}

	/**
	 * 问题详细
	 * 
	 * @return 问题详细
	 */
	public Issue getIssue() {
		return issue;
	}

	/**
	 * 问题项目
	 * 
	 * @return 问题所属项目
	 */
	public Project getProject() {
		return project;
	}

	/**
	 * 最新回复
	 * 
	 * @return 回复信息
	 */
	public Comment getComment() {
		return comment;
	}

	/**
	 * 优先级
	 * 
	 * @result priopity_name
	 */
	public Priopity getPriopity() {
		return priopity;
	}
}
